<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增贷款信息表" bodyClass="white-bg" libs=["prism","bootstrapSelect","ueditor"]/>
<div class="wrapper wrapper-content ibox-content">
    <@form.form id="form-loan-add"  class="form-horizontal">
    <input  type="hidden" name="delFlag" value="0">
    <input name="saleOrderNumber" value="${saleOrderNumber}" class="form-control" type="hidden">
    <input name="userId" value="${user.id}" class="form-control" type="hidden">
    <input name="saleUserid" value="1" class="form-control" type="hidden">
    <input name="processStatus" value="1" class="form-control" type="hidden">
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "申请人"/>：
    </label>
        <div class="col-sm-8"><input class="form-control" type="text" value="${user.name}" readonly="true">
        </div>
    </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售员"/>：                
       </label>
        <div class="col-sm-8"><input name="saleUsername" class="form-control" type="text" value="${bpmCrmLoan.saleUserid?default('张三')}" readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "销售订单编号"/>：
       </label>
        <div class="col-sm-8"><input name="saleCode" class="form-control" type="text" value="${bpmCrmLoan.saleCode?default('3213213213')}"  readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "车辆识别号"/>：
       </label>
        <div class="col-sm-8"><input name="outCarVin" class="form-control" type="text" value="${bpmCrmLoan.outCarVin?default('321321')}" readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><@ctx.i18n text = "车型"/>：
       </label>
        <div class="col-sm-8"><input name="outCarVehicle" class="form-control" type="text" value="${bpmCrmLoan.outCarVehicle?default('321321321')}" readonly="true">
        </div>
     </div>
    <div class="form-group">        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "申请贷款金额"/>：
       </label>
        <div class="col-sm-8"><input name="loanApplyMoney" class="form-control" type="number" required>
        </div>
     </div>
    <div class="form-group">
        <label class="col-sm-3 control-label"><span style="color: red; ">*</span><@ctx.i18n text = "申请备注"/>：</label>
        <div class="col-sm-8">
            <textarea name="loanApplyMemo" class="form-control" required></textarea>
        </div>
    </div>
</@form.form>
</div>
<@footer>
    <script type="text/javascript">
        var prefix = baseURL + "bpm/loan"
        $("#form-loan-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if (opt.validate.form()) {
                opt.operate.save(prefix + "/add", $('#form-loan-add').serialize());
            }
        }
        function isNullOrEmpty(value) {
            return value==''||value==null||value==undefined;
        }
</script>
</@footer>
</@pageTheme>